<?php

//use Illuminate\Support\Facades\Schema;
use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVideosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('videos', function (Blueprint $table) {
            $table->increments('id');
			$table->string('description')->default('')->comment('描述');
			$table->string('url')->default('')->comment('视频URL');
			$table->string('image')->default('')->comment('视频封面URL');
			$table->unsignedInteger('is_release')->default('0')->comment('是否发布，0=不发布，1=发布');
            $table->timestamps();
            $table->comment = '视频表';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('videos');
    }
}
